<!--
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-09-06 15:04:42
 * @LastEditors: voanit
 * @LastEditTime: 2022-09-06 15:06:04
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    /* split  以什么分割返回一个新的数组 */
    var str = '132-4560-6789'
    var arr = str.split('-')
    console.log(arr);
  </script>
</body>

</html>